/**
 * Copyright (c) 2014-2016 www.nryuncang.com. All Rights Reserved.
 */
package com.topisv.tms.listener;

import javax.servlet.ServletContextEvent;

/**
 * Hibernate 4 日志框架Jboss Logging 转slf4j
 *
 * @author <a href="mailto:yuanlianghe@nryuncang.com">yuanlianghe</a>
 * @version 0.0.15
 */
public class JbossLoggingToSlfjListener implements javax.servlet.ServletContextListener {

    /**
     * 
     * {@inheritDoc}
     * @author <a href="mailto:yuanlianghe@nryuncang.com">yuanlianghe</a>
     */
    @Override
    public void contextDestroyed(ServletContextEvent arg0) {
        
    }

    /**
     * 
     * {@inheritDoc}
     * @author <a href="mailto:yuanlianghe@nryuncang.com">yuanlianghe</a>
     */
    @Override
    public void contextInitialized(ServletContextEvent arg0) {
        System.setProperty("org.jboss.logging.provider", "slf4j");
    }
    
}
